package com.probox.common.entity.domain.product;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.probox.common.core.annotation.Excel;

/**
 * 商品分组信息对象 product_group
 *
 *
 * @date 2021-06-03
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("product_group")
public class ProductGroup implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    //默认主键自增
    @TableId(value = "GROUP_UID", type = IdType.AUTO)
    private Long groupUid;
    /**
     * 平台ID
     */
    @Excel(name = "平台ID")
    private Long platformUid;
    /**
     * 分组名称
     */
    @Excel(name = "分组名称")
    private String groupName;

    @Excel(name = "小提示")
    private String tipName;
    /**
     * 状态(1有效/0无效)
     */
    @Excel(name = "状态(1有效/0无效)")
    private String dataStatus;
    /**
     * 拍下与
     */
    @Excel(name = "排序")
    private Long dataPriority;
    /**
     * 创建人ID
     */
    @Excel(name = "创建人ID")
    private Long createUid;
    /**
     * 创建人名称
     */
    @Excel(name = "创建人名称")
    private String createName;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 更新人ID
     */
    @Excel(name = "更新人ID")
    private Long updateUid;
    /**
     * 更新人名称
     */
    @Excel(name = "更新人名称")
    private String updateName;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    private String serviceType;

    @Excel(name = "父组ID")
    private Long parentGroupUid;

    //深度
    private Integer groupDepth;
    //父UIDs
    private String groupUidList;

}
